/**
 * Created by jiaoyumin on 2017/9/29.
 */
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import getters from './getters';
import mutations from './mutations';

Vue.use(Vuex);

const state = {
  istourism: true,
  tamenus: [
    {
      name: '系统首页',
      hasSublist: false,
      index: '/tahome',
    },
    {
      name: '旅行社季报表',
      hasSublist: true,
      index: '/ta',
      list: [
        // {
        //   name: '查看季报',
        //   index: '/tasubmit'
        // },
        {
          name: '网上填报',
          index: '/tawstb'
        },
        {
          name: '报表上传',
          index: '/taupload'
        },
        // {
        //   name: '数据分析',
        //   index: '/tachart'
        // },
        {
          name:'历史记录',
          index:'/tahistory'
        },
      ]
    }
  ],
  govmenus: [
    {
      name: '系统首页',
      hasSublist: false,
      index: '/govhome',
    },
    {
      name: '季报审核',
      hasSublist: true,
      index: '/gov',
      list: [
        {
          name: '未填报',
          index: '/govnofill'
        },
        {
          name: '填报完成待审核',
          index: '/govcomfill'
        },
        {
          name: '退回重填',
          index: '/govrefill'
        },
        {
          name: '审核完成',
          index: '/govcomre'
        },
        {
          name: '季报进度',
          index: '/govproview'
        },
        {
          name: '停业旅行社',
          index: '/govvisit'
        },
      ]
    }
  ],
  permissionsMenu: [
    {
      name: '系统首页',
      hasSublist: false,
      index: '/govhome',
    },
    {
      name: '季报审核',
      hasSublist: true,
      index: '/gov',
      list: [
        {
          name: '未填报',
          index: '/govnofill'
        },
        {
          name: '季报进度',
          index: '/govproview'
        },
        {
          name: '停业旅行社',
          index: '/govvisit'
        },
      ]
    }
  ],
  // taOrGov:true,
  currentMenus:this.tamenus,
  userinfo:{},
  token:'',
  supportinfo:[],
  process:{},
  agencyinfo:{},
  sysinfo:{},
  wljds: [],
  zzjds: [],
  zzcjs: [],
  reportDetail:{},
  reportGovDetail:{},
  chartsData:[],
  provinces:[],
  cities:{},
  areas:{},
  reportList:[],
  govprocess:{},
  agencyList:{},
  stopedAgencyList:{},
  processList:[],
  auditLevel:0,
  taPdfUrl:"http://12301help.oss-cn-beijing.aliyuncs.com/2017/10/%E6%97%85%E8%A1%8C%E7%A4%BE%E7%AB%AF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C%EF%BC%88%E5%90%88%E8%AE%A2%EF%BC%8920170901.pdf",
  govPdfUrl:"http://12301help.oss-cn-beijing.aliyuncs.com/2017/10/%E6%97%85%E6%B8%B8%E5%B1%80%E7%AB%AF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C%EF%BC%88%E5%90%88%E8%AE%A2%EF%BC%8920170901.pdf"
}

export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations,
})
